package com.cloud.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 支付配置
 * </p>
 *
 * @author wenjin
 * @since 2019-12-11
 */
@Data
@TableName("pay_config")
public class PayConfig implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 应用ID
     */
    @TableField("app_id")
    private String appId;

    /**
     * 应用私钥
     */
    @TableField("app_secret")
    private String appSecret;

    /**
     * API私钥
     */
    @TableField("api_secretkey")
    private String apiSecretkey;

    /**
     * 公钥
     */
    @TableField("public_key")
    private String publicKey;

    /**
     * 私钥
     */
    @TableField("private_key")
    private String privateKey;

    /**
     * 商户ID
     */
    @TableField("account_id")
    private String accountId;

    /**
     * 支付渠道：1表示微信，2表示支付宝
     */
    @TableField("channel")
    private Integer channel;

    /**
     * 状态：0表示停用，1表示启用
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String APP_ID = "app_id";

    public static final String APP_SECRET = "app_secret";

    public static final String API_SECRETKEY = "api_secretkey";

    public static final String PUBLIC_KEY = "public_key";

    public static final String PRIVATE_KEY = "private_key";

    public static final String ACCOUNT_ID = "account_id";

    public static final String CHANNEL = "channel";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
